﻿/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author Esanantonio
 */
Cognitum.Polizas.Siniestro.ContactoSimple.Editor = Ext.extend(Karma.EBCard, {
    initComponent: function(){
        Ext.apply(this, {
            sections: [{
                title: 'Contacto Simple',
                items: [
	            {	        
                    fieldLabel: 'Id',
                    name: 'Id',
                    xtype: 'hidden',
                    allowBlank: true
                }, {
                    fieldLabel: 'Nombre Completo',
                    name: 'NombreCompleto'
                }, {
                    fieldLabel: 'E-mail',
                    name: 'Email',
                    allowBlank: true
                }, {
                    fieldLabel: 'Cliente',
                    name: 'Cliente',
                    entityName: 'Clientes',
                    xtype: 'entity.link',
                    allowBlank: false
                }
                ]
            }
            ]
        });
        Cognitum.Polizas.Siniestro.ContactoSimple.Editor.superclass.initComponent.apply(this, arguments);
    }
    
});
Ext.reg('contactosin.editor', Cognitum.Polizas.Siniestro.ContactoSimple.Editor);
